<?php
/**
 * Created by PhpStorm.
 * User: xiao
 * Date: 2018/1/16
 * Time: 15:15
 */

namespace Admin\Controller;


use Common\Base\BaseController;
use Org\Baidu\Exec;
use Think\Log;

class IndexController extends BaseController
{

    public function index()
    {
        try {
            S('name', 'zhangsan');
        } catch (\Exception $e) {

            $errArr['msg'] = $e->getMessage();
            $errArr['detail'] = $e->getTraceAsString();

            Log::record(json_encode($errArr));
        }
    }

    public function getBdData()
    {
        Exec::doIt();
    }


    public function tst()
    {
    }
}
